<!--# layout("/common/leftmallout.html",{"jsBase":"/js/user/userTax/"}){ -->
<link rel="stylesheet" href="http://ziyunoss.oss-cn-hangzhou.aliyuncs.com/pop/mall/style/member.css">
<script src="http://ziyunoss.oss-cn-hangzhou.aliyuncs.com/pop/mall/style/Validform_v5.3.2.js"></script>
<div class="center">
	<div class="section">
    	<!-------------面包屑--------------------->
            <div class="bread-crumbs">
                   <br/>
                </div>
        <!------------------主体结构--------------------->
        <div class="small-page">
       <!-------右侧-------->
            <div class="page-article">
            	<div class="area_mend_head">
                    <span>已有<strong class="price"></strong>条发票信息</span>
                    <i class="member-more-r ">
                     <a href="javascript:void(0)"  class="zjshdz">新增公司发票</a>
                     </i>
                </div>
                <div class="area_mend_body">
                	<table class="area_mood_tanle">
                    	<thead>
                        	<tr>
                            	<td width="50%">公司名</td>
                                <td width="50%">操作</td>
                            </tr>
                        </thead>
                        <tbody class="tbodyTax">
                        
                        </tbody>
                    </table>
                   	
                    <!----------------------->	
                </div>
            </div>
       <!-------右侧end-------->
        </div>
        <!------------------->
    </div>
</div>
<!--#} -->
<script>
layui.use(['index'], function(){
    var userTaxListIndex = layui.index
    userTaxListIndex.init();
});
</script>

<script >
function showTax() {
    var taxId=arguments[0] ? arguments[0] : '0';
    doAjax('/user/userTax/listUserTax.json','post','',function(res){
        $('.tbodyTax').empty();
        var html="";
        for(var i=0;i<res.data.listUserTax.length;i++){
        	var usertax=res.data.listUserTax[i];
        	html+='<tr>'+
       	'<td ><span>'+usertax.taxCompany+'</span></td>'+
           '<td class="operation" >'+
           	'<i class="editor" id_alter="'+usertax.taxId+'">编辑</i>'+
              ' <i class="delete" omit_id="'+usertax.taxId+'">删除</i>'+
          ' </td>'+
      ' </tr>';
        }
        $('.tbodyTax').append(html);
        var taxCount=res.data.taxCount;
        $('.price').html(taxCount);
        
    },'');
}	
function showLeftAside() {
	var html=$('.page-aside');
	var righthtml=$('.page-article');
	$('.small-page').empty();
	$('.small-page').append(html);
	$('.small-page').append(righthtml);
}

$('#tax').css({'color':'#6647b2','font-weight':'900'});
</script>


